﻿<UserControl x:Class="CPPEI.Coolzon.Theme.Fashion.MainViewControl.ZoomView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:src="clr-namespace:CPPEI.Coolzon.Theme.Fashion.MainViewControl"
             mc:Ignorable="d" 
             d:DesignHeight="154" d:DesignWidth="1366">
    <UserControl.Resources>
        <ImageBrush x:Key="enterImage" ImageSource ="/CPPEI.Coolzon.Theme.Fashion;component/Images/changjing2.png" />
        <ImageBrush x:Key="defaultImage" ImageSource="/CPPEI.Coolzon.Theme.Fashion;component/Images/changjing.png" />

        <Style TargetType="Button" x:Key="nextSceneStyle">
            <Setter Property="Width" Value="154" />
            <Setter Property="DockPanel.Dock" Value="Right" />
            <Setter Property="Background" Value="{StaticResource defaultImage}" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                            <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter Property="Background" Value="{StaticResource enterImage}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid Name="Layout">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Canvas x:Name="canvas" Grid.Column="0" SizeChanged="canvas_SizeChanged">
            <Border x:Name="_border" Background="Transparent" BorderBrush="Black" BorderThickness="2" />
            <Rectangle Name="_ctlRectDragMask" Fill="#55222222" Width="200" Height="100" Visibility="Hidden" IsHitTestVisible="False"/>
        </Canvas>
        <Border Name="_ctlRectPrepareBorder" BorderBrush="Green" BorderThickness="1" Width="70" Height="20" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Column="0" Visibility="Hidden">
            <Rectangle Name="_ctlRectPrepare" Fill="Yellow" Width="0" Height="18" HorizontalAlignment="Left"/>
        </Border>
        <Button x:Name="nextScene" Style="{StaticResource nextSceneStyle}" Click="nextScene_Click" MouseDown="nextScene_MouseDown" Grid.Column="1" />
    </Grid>
</UserControl>
